<?php

namespace App\Http\Controllers\DesignPattern\Creational\Behavioral;

use App\Model\DesignPattern\Creational\Behavioral\Strategy\BubbleSortStrategy;
use App\Model\DesignPattern\Creational\Behavioral\Strategy\Sorter;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class StrategyController extends Controller
{
    public function index()
    {
        $res = new Sorter(new BubbleSortStrategy());
        return $res->sort(123);
    }
}
